﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Controls;

namespace AnesSystem.Controls
{
    public abstract class EventIcon : BaseIcon
    {
        #region Variables

        #endregion

        #region Constructor

        public EventIcon()
        {
            Height = 10;
            Width = 10;
            this.Loaded += EventIcon_Loaded;
        }

        #endregion

        #region Properties

        /// <summary>
        /// 图标标识，开始还是结束
        /// </summary>
        public bool Identify { get; set; }

        #endregion

        #region 依赖属性

        #endregion

        #region Event

        #endregion

        #region Private Methods

        #endregion

        #region Public/Protected Methods

        public abstract override void ResizeIcon();

        public override void SetPoint(double left,double top)
        {

            Canvas.SetLeft(this, left);
            Canvas.SetTop(this, top);
        }

        #endregion

        #region EventHandlers

        private void EventIcon_Loaded(object sender, System.Windows.RoutedEventArgs e)
        {
            ResizeIcon();
        }

       

        #endregion
    }
}
